<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="nst" uri="http://www.nstechs.com/app/core" %>
<%@ page isELIgnored="false" %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<base href="<%=basePath%>">
<link href="intranetStatic/css/style.css" rel="stylesheet" type="text/css">

<script type="text/javascript" src="intranetStatic/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="intranetStatic/js/jquery.validate.min.js"></script>
<script type="text/javascript" src="intranetStatic/js/global.js"></script>
<script type="text/javascript" src="intranetStatic/js/json2.js"></script>
<script type="text/javascript" src="intranetStatic/js/vendor.js"></script>
<script type="text/javascript" src="intranetStatic/js/http.js"></script>
<script type="text/javascript" src="intranetStatic/js/dateinput.js"></script>

<script>
    var staticPath = '${pageContext.request.contextPath}/static';
    var rootPath = '${pageContext.request.contextPath}';
    var lang = '';

    function createUrl(url) {
        return  encodeURI("${pageContext.request.contextPath}" + url);
    }

    function createImgUrl(url) {
        return  encodeURI("${dns}" + url);
    }

    String.prototype.trim = function () {
        return this.replace(/(^\s*)|(\s*$)/g, "");
    }
</script>